package com.soriya.nestlive.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.soriya.nestlive.entity.ChannelEntity;
import com.soriya.nestlive.entity.vo.ChannelDetailVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChannelMapper extends MPJBaseMapper<ChannelEntity> {

    int selectRecommendCount(@Param("userId") Long userId);

    List<ChannelDetailVo> selectRecommend(@Param("userId") Long userId, @Param("current") Integer current, @Param("size") Integer size);

}
